<template>
  <div class="container">
    <div class="header">
      <h3 @click="goBack">返回</h3>
    </div>
    <div class="main">
      <ul>
        <li>
          <p>地址信息 <input type="text" placeholder="请输入地址信息" /></p>
        </li>
        <li>
          <p>服务时间 <input type="text" placeholder="请输入服务时间" /></p>
        </li>
        <li>
          <p>附近商家 <input type="text" placeholder="请完善地址信息" /></p>
        </li>
        <li>
          <p>接单时间 <input type="text" placeholder="请输入接单时间" /></p>
        </li>
        <li>
          <p>服务备注 <input type="text" placeholder="请填写服务需求" /></p>
        </li>
      </ul>
      <div>
        <h4 @click="handleClick">订金说明</h4>
        <div class="hidden" v-show="isShow">
          <p>1、订金上门可退，上门后等额抵折扣结算费用</p>
          <p>
            2、为了保障您的权益，若商家在结算费用时未扣除订金部分，可在服务完成后进行投诉
          </p>
        </div>
      </div>
      <button>支付</button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isShow: false,
    };
  },
  methods: {
    handleClick() {
      this.isShow = !this.isShow;
    },
    goBack(){
      this.$router.push({ name : 'wash'})
    }
  },
};
</script>

<style scoped>
button{
  position: relative;
  margin-left: 250px;
  margin-top: 20px;
  cursor: pointer;
    width: 100px;
    height: 40px;
    line-height: 45px;
    line-height: 44px\9;
    padding: 0;
    background: 0 0;
    background-color: #4e6ef2;
    border-radius: 10px;
    font-size: 17px;
    color: #fff;
    box-shadow: none;
    font-weight: 400;
    border: none;
    outline: 0;
}
h3 {
  background-color: #fff;
  border-bottom: 8px solid rgb(229, 242, 250);
}
p {
  color: #000;
  padding: 20px 15px;
  box-shadow: 1px 1px 8px #999;
  background-color: #fff;
}
input {
  height: 30px;
  width: 200px;
  margin-left: 20px;
  padding-left: 8px;
  border-radius: 12px;
  outline: none;
  background-color: #fff;
  border: 1px solid #999;
}

h4 {
  color: #000;
  padding: 20px 15px;
  border-top: 8px solid rgb(229, 242, 250);
  background-color: #fff;
  /* border-bottom:1px solid #999; */
}

.hidden {
  padding-top: 8px;
}

.hidden p {
  border: none;
  /* box-shadow: none; */
  padding: 8px;
}
</style>